import java.util.ArrayList;

import javax.security.auth.Subject;

import com.ignou.mca.beans.SubjectBean;
import com.ignou.mca.datasource.DatabaseOperations;


public class Test 
{
	public static void main(String a[])
	{
		DatabaseOperations db = new DatabaseOperations();
		//ArrayList<SubjectBean> sb = new ArrayList<SubjectBean>();
		/*sb = db.getUserSubjects("admin");
		System.out.println(sb.size() + "  Subjects");
		for(int i=0; i<sb.size();i++)
		{
			SubjectBean s = (SubjectBean) sb.get(i);
			System.out.println(s.getSubjectId() + "   "+ s.getSubjectName());
		}
		*/
		
//		sb = db.getAllSubjects();
//		for(int i=0; i<sb.size();i++)
//		{
//			SubjectBean s = (SubjectBean) sb.get(i);
//			System.out.println(s.getSubjectId() + "   "+ s.getSubjectName());
//		}
		db.doActivation("venu", "venu.2703@gmail.com", "441rnwtamvrkw626");
		
	}
}
